package hello;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController	//标识这个类是一个Controller
//Rest标识返回结果，java对象转换json字符串，在页面展示内容
public class HelloController {
	@RequestMapping({"/","/hello"})
	public String hello() {
		return "hello springmvc";
	}
}
